package com.weharvest.edu.dao.mapper;

import com.weharvest.edu.entity.between.BackstageRoleMenuPermission;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface InterceptorDaoMapper {

    /**
     * 配合注解值判断该后台用户是否有权限进行资源操作
     *
     * @param params
     * @return
     */
//    public BackstageRoleMenuPermission queryHavePermission(
//            @Param("backstageRoleMenuPermission") BackstageRoleMenuPermission backstageRoleMenuPermission
//            ,@Param("userId")String userId,@Param("flag")String flag, @Param("state")Integer state);
    public BackstageRoleMenuPermission queryHavePermission(
            @Param("params") Map<String, Object> params);

}
